#ifndef ORDER_H
#define ORDER_H
#include <QList>
#include <QString>
class customer;

struct ordertuple {
    QString name;
    qreal price;
    int quantity;
};

class order
{
public:
    static int orderID;   // 静态变量 orderID
    friend class customer;
    order(){orderID += 1;};
    order(customer *customerPtr);
    order(customer *customerPtr,order &o);
    ~order();
    void orderfood(QString name,int num);
    void orderfood1(QString name,int num);
    void submitorder(QString name);
    void selectMan(QString name);

    QStringList checkOrder();
    double operator +(order *o);
    void operator =(order *o);

private:
    const customer *c;
    QList<ordertuple> orders;

    double allprice;
};

#endif // ORDER_H
